| Total Complexity | 1 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import React, { Component } from "react" |
||
| 5 | |||
| 6 | class SponsorsBlock extends Component { |
||
| 7 | render() { |
||
| 8 | const { sponsors } = this.props.data |
||
| 9 | return ( |
||
| 10 | <> |
||
| 11 | {sponsors.edges.map(({ node }, i) => { |
||
| 12 | const website = (node.field_website && node.field_website.uri) || "" |
||
| 13 | return ( |
||
| 14 | <Sponsor |
||
| 15 | key={i} |
||
| 16 | localFile={ |
||
| 17 | node.relationships.field_media_image.relationships |
||
| 18 | .field_media_image.localFile |
||
| 19 | } |
||
| 20 | uri={website} |
||
| 21 | /> |
||
| 22 | ) |
||
| 23 | })} |
||
| 24 | <Link to="/sponsors" className={"read-more"}> |
||
| 25 | Alle sponsors » |
||
| 26 | </Link> |
||
| 27 | </> |
||
| 28 | ) |
||
| 72 |